/**
 * 配置页面标题
 */

import { globalSetting } from '@/constant/index'

const pageDefaultTitle = globalSetting.domTitle

export default function setPageTitle(routerTitle?: string): void {
  window.document.title = routerTitle
    ? `${routerTitle} | ${pageDefaultTitle}`
    : `${pageDefaultTitle}`
}
